#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.config.mqtt.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "mqtt")
@Data
public class MqttProperty {
    /**
     * brokerUrl
     */
    private String brokerUrl;
    /**
     * clientId
     */
    private String clientId;
    /**
     * username
     */
    private String username;
    /**
     * password
     */
    private String password;

    /**
     * keepAliveInterval
     */
    private Integer keepAliveInterval;
    /**
     * connectTimeout
     */
    private Integer connectTimeout;

    /**
     * 最大未确认消息条数
     */
    private Integer maxInflight;
    /**
     * 是否清除会话
     */
    private Boolean cleanSession;

    /**
     * topic配置
     */
    private List<MqttTopicProperty> mqttTopics;

}
